
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type SystemConfigTabRequest struct {

	Pid string `json:"pid" form:"pid"`

	Title string `json:"title" form:"title"`

	EngTitle string `json:"eng_title" form:"eng_title"`

	Status string `json:"status" form:"status"`

	Info string `json:"info" form:"info"`

	Icon string `json:"icon" form:"icon"`

	Type string `json:"type" form:"type"`

	Sort string `json:"sort" form:"sort"`

	MenusId string `json:"menus_id" form:"menus_id"`

}

func (r *SystemConfigTabRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *SystemConfigTabRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"pid": "required",

		"title": "required",

		"eng_title": "required",

		"status": "required",

		"info": "required",

		"icon": "required",

		"type": "required",

		"sort": "required",

		"menus_id": "required",

	}
}

func (r *SystemConfigTabRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *SystemConfigTabRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *SystemConfigTabRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
